package cn.doitedu

import java.io.File

import scala.io.Source

object Demo {
  def main(args: Array[String]): Unit = {
    val source = Source.fromFile(new File(""))

    val lines: Iterator[String] = source.getLines()

    // a,b,c,d
    // a,,x,y
    // ,b,t,r
    val filtered: Iterator[String] = lines.filter(s => {
      val arr = s.split(",")
      !arr.exists(_.isEmpty)
    })


    val ints: Iterator[String] = lines.map(s => {
      s.split(",")(0)
    })


  }

}
